package com.flute.icrawler.check.checker;

import java.util.List;

import com.flute.icrawler.check.util.Util;


public class CompareObj {
	public String fileNameid;
	public String urlid;
	public List<String> hrefList;
	
	public List<String> getHrefList() {
		return hrefList;
	}
	public void setHrefList(List<String> hrefList) {
		this.hrefList = hrefList;
	}
	public String getFileNameid() {
		return fileNameid;
	}
	public void setFileNameid(String fileNameid) {
		this.fileNameid = fileNameid;
	}
	public String getUrlid() {
		return urlid;
	}
	public void setUrlid(String urlid) {
		this.urlid = urlid;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CompareObj other = (CompareObj) obj;
		if (urlid == null) {
			if (other.urlid != null)
				return false;
		} else if (!urlid.equals(other.urlid)){
			return false;
		} else if (!fileNameid.equals(other.fileNameid)){
			return false;
		} else if( !Util.isSame(hrefList, other.hrefList)){
			return false;
		}
			
		return true;
	}

}
